package com.peng.controller;

import com.peng.service.AsyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AsyController {
    @Autowired
    AsyService asyService;

    @RequestMapping("/hello")
    @ResponseBody
    public String ok(){
        asyService.test();
        return "ok";
    }
}
